//
//  AppointCell.m
//  WE
//
//  Created by iMacOne on 15/12/4.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "AppointCell.h"
#import "Size.h"
#import <Masonry.h>

@interface AppointCell()
@property (nonatomic, strong)UILabel * titleLbl;
@property (nonatomic, strong)UILabel * moneyLbl;
@property (nonatomic, strong)UILabel * appointLbl;


@end
@implementation AppointCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.titleLbl = [UILabel new];
        _titleLbl.font = FONT(14);
        _titleLbl.text = @"2015-12-04 周二 下午";
        _titleLbl.textColor = [UIColor colorWithRed:0.2875 green:0.6804 blue:0.3164 alpha:1.0];
        [self.contentView addSubview:_titleLbl];
        [_titleLbl mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView).offset(10);
            make.top.equalTo(self.contentView).offset(10);
            make.height.offset(20);
        }];
        
        self.appointLbl = [UILabel new];
        _appointLbl.font = FONT(14);
        _appointLbl.text = @"预约";
        _appointLbl.backgroundColor = [UIColor colorWithRed:0.2875 green:0.6804 blue:0.3164 alpha:1.0];
        _appointLbl.textColor = [UIColor whiteColor];
        _appointLbl.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:_appointLbl];
        [_appointLbl mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.equalTo(self.contentView.mas_right).offset(-20);
            make.top.equalTo(_titleLbl.mas_top);
            make.height.offset(30);
            make.width.offset(60);
        }];
        
        self.moneyLbl = [UILabel new];
        _moneyLbl.font = FONT(12);
        _moneyLbl.text = @"正高  16元";
        
        _moneyLbl.textColor = [UIColor grayColor];
        [self.contentView addSubview:_moneyLbl];
        [_moneyLbl mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView).offset(10);
            make.top.equalTo(_titleLbl.mas_bottom);
            make.height.offset(20);
        }];

        
    }
    return self;
}

@end
